package com.probiz.estoresa.content.web.action;

import javax.servlet.http.HttpServletRequest;

import org.springframework.validation.BindException;

import com.probiz.estore.common.model.content.ContentMedia;
import com.probiz.estore.content.service.ContentMediaManager;
import com.probiz.estore.core.controller.GenericStoreAdminController;

public class ContentMediaController extends GenericStoreAdminController<ContentMedia> {
    private ContentMediaManager contentMediaManager = null;

    public void setContentMediaManager(ContentMediaManager inMgr) {
        this.contentMediaManager = inMgr;
    }

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.probiz.estore.core.controller.GenericController#getEntityName(java.lang.Object)
	 */
	@Override
	protected String getEntityName(ContentMedia entity) {
		return entity.getContentMediaName();
	}


	/*
	 * (non-Javadoc)
	 * 
	 * @see com.probiz.estore.core.controller.BaseController#initController()
	 */
	@Override
	protected void initController() throws Exception {
		mgr = contentMediaManager;
	}


	@Override
	protected void preSave(HttpServletRequest request, ContentMedia entity,
			BindException errors) {
		
	}

}
